package manong.beans;

import java.util.ArrayList;
import java.util.List;

public class ArrangeQuery {

    protected String orderByClause;
    protected boolean distinct;
    protected List<Criteria> oredCriteria;
    protected Boolean forUpdate = false;
    
    public ArrangeQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

   
    public boolean isDistinct() {
        return distinct;
    }


    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }


    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

 
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }


    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }


    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

 
    public void setForUpdate(Boolean forUpdate) {
        this.forUpdate = forUpdate;
    }


    public Boolean isForUpdate() {
        return forUpdate;
    }

 
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andCourseIdIsNull() {
            addCriterion("course_id is null");
            return (Criteria) this;
        }

        public Criteria andCourseIdIsNotNull() {
            addCriterion("course_id is not null");
            return (Criteria) this;
        }

        public Criteria andCourseIdEqualTo(Integer value) {
            addCriterion("course_id =", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotEqualTo(Integer value) {
            addCriterion("course_id <>", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThan(Integer value) {
            addCriterion("course_id >", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("course_id >=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThan(Integer value) {
            addCriterion("course_id <", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdLessThanOrEqualTo(Integer value) {
            addCriterion("course_id <=", value, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdIn(List<Integer> values) {
            addCriterion("course_id in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotIn(List<Integer> values) {
            addCriterion("course_id not in", values, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdBetween(Integer value1, Integer value2) {
            addCriterion("course_id between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andCourseIdNotBetween(Integer value1, Integer value2) {
            addCriterion("course_id not between", value1, value2, "courseId");
            return (Criteria) this;
        }

        public Criteria andClassIdIsNull() {
            addCriterion("class_id is null");
            return (Criteria) this;
        }

        public Criteria andClassIdIsNotNull() {
            addCriterion("class_id is not null");
            return (Criteria) this;
        }

        public Criteria andClassIdEqualTo(Integer value) {
            addCriterion("class_id =", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdNotEqualTo(Integer value) {
            addCriterion("class_id <>", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdGreaterThan(Integer value) {
            addCriterion("class_id >", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("class_id >=", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdLessThan(Integer value) {
            addCriterion("class_id <", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdLessThanOrEqualTo(Integer value) {
            addCriterion("class_id <=", value, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdIn(List<Integer> values) {
            addCriterion("class_id in", values, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdNotIn(List<Integer> values) {
            addCriterion("class_id not in", values, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdBetween(Integer value1, Integer value2) {
            addCriterion("class_id between", value1, value2, "classId");
            return (Criteria) this;
        }

        public Criteria andClassIdNotBetween(Integer value1, Integer value2) {
            addCriterion("class_id not between", value1, value2, "classId");
            return (Criteria) this;
        }

        public Criteria andRoomIdIsNull() {
            addCriterion("room_id is null");
            return (Criteria) this;
        }

        public Criteria andRoomIdIsNotNull() {
            addCriterion("room_id is not null");
            return (Criteria) this;
        }

        public Criteria andRoomIdEqualTo(Integer value) {
            addCriterion("room_id =", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdNotEqualTo(Integer value) {
            addCriterion("room_id <>", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdGreaterThan(Integer value) {
            addCriterion("room_id >", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("room_id >=", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdLessThan(Integer value) {
            addCriterion("room_id <", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdLessThanOrEqualTo(Integer value) {
            addCriterion("room_id <=", value, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdIn(List<Integer> values) {
            addCriterion("room_id in", values, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdNotIn(List<Integer> values) {
            addCriterion("room_id not in", values, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdBetween(Integer value1, Integer value2) {
            addCriterion("room_id between", value1, value2, "roomId");
            return (Criteria) this;
        }

        public Criteria andRoomIdNotBetween(Integer value1, Integer value2) {
            addCriterion("room_id not between", value1, value2, "roomId");
            return (Criteria) this;
        }

        public Criteria andTecherIdIsNull() {
            addCriterion("techer_id is null");
            return (Criteria) this;
        }

        public Criteria andTecherIdIsNotNull() {
            addCriterion("techer_id is not null");
            return (Criteria) this;
        }

        public Criteria andTecherIdEqualTo(Integer value) {
            addCriterion("techer_id =", value, "techerId");
            return (Criteria) this;
        }

        public Criteria andTecherIdNotEqualTo(Integer value) {
            addCriterion("techer_id <>", value, "techerId");
            return (Criteria) this;
        }

        public Criteria andTecherIdGreaterThan(Integer value) {
            addCriterion("techer_id >", value, "techerId");
            return (Criteria) this;
        }

        public Criteria andTecherIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("techer_id >=", value, "techerId");
            return (Criteria) this;
        }

        public Criteria andTecherIdLessThan(Integer value) {
            addCriterion("techer_id <", value, "techerId");
            return (Criteria) this;
        }

        public Criteria andTecherIdLessThanOrEqualTo(Integer value) {
            addCriterion("techer_id <=", value, "techerId");
            return (Criteria) this;
        }

        public Criteria andTecherIdIn(List<Integer> values) {
            addCriterion("techer_id in", values, "techerId");
            return (Criteria) this;
        }

        public Criteria andTecherIdNotIn(List<Integer> values) {
            addCriterion("techer_id not in", values, "techerId");
            return (Criteria) this;
        }

        public Criteria andTecherIdBetween(Integer value1, Integer value2) {
            addCriterion("techer_id between", value1, value2, "techerId");
            return (Criteria) this;
        }

        public Criteria andTecherIdNotBetween(Integer value1, Integer value2) {
            addCriterion("techer_id not between", value1, value2, "techerId");
            return (Criteria) this;
        }

        public Criteria andSemeIdIsNull() {
            addCriterion("seme_id is null");
            return (Criteria) this;
        }

        public Criteria andSemeIdIsNotNull() {
            addCriterion("seme_id is not null");
            return (Criteria) this;
        }

        public Criteria andSemeIdEqualTo(Integer value) {
            addCriterion("seme_id =", value, "semeId");
            return (Criteria) this;
        }

        public Criteria andSemeIdNotEqualTo(Integer value) {
            addCriterion("seme_id <>", value, "semeId");
            return (Criteria) this;
        }

        public Criteria andSemeIdGreaterThan(Integer value) {
            addCriterion("seme_id >", value, "semeId");
            return (Criteria) this;
        }

        public Criteria andSemeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("seme_id >=", value, "semeId");
            return (Criteria) this;
        }

        public Criteria andSemeIdLessThan(Integer value) {
            addCriterion("seme_id <", value, "semeId");
            return (Criteria) this;
        }

        public Criteria andSemeIdLessThanOrEqualTo(Integer value) {
            addCriterion("seme_id <=", value, "semeId");
            return (Criteria) this;
        }

        public Criteria andSemeIdIn(List<Integer> values) {
            addCriterion("seme_id in", values, "semeId");
            return (Criteria) this;
        }

        public Criteria andSemeIdNotIn(List<Integer> values) {
            addCriterion("seme_id not in", values, "semeId");
            return (Criteria) this;
        }

        public Criteria andSemeIdBetween(Integer value1, Integer value2) {
            addCriterion("seme_id between", value1, value2, "semeId");
            return (Criteria) this;
        }

        public Criteria andSemeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("seme_id not between", value1, value2, "semeId");
            return (Criteria) this;
        }

        public Criteria andCourseNameIsNull() {
            addCriterion("course_name is null");
            return (Criteria) this;
        }

        public Criteria andCourseNameIsNotNull() {
            addCriterion("course_name is not null");
            return (Criteria) this;
        }

        public Criteria andCourseNameEqualTo(String value) {
            addCriterion("course_name =", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameNotEqualTo(String value) {
            addCriterion("course_name <>", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameGreaterThan(String value) {
            addCriterion("course_name >", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameGreaterThanOrEqualTo(String value) {
            addCriterion("course_name >=", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameLessThan(String value) {
            addCriterion("course_name <", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameLessThanOrEqualTo(String value) {
            addCriterion("course_name <=", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameLike(String value) {
            addCriterion("course_name like", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameNotLike(String value) {
            addCriterion("course_name not like", value, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameIn(List<String> values) {
            addCriterion("course_name in", values, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameNotIn(List<String> values) {
            addCriterion("course_name not in", values, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameBetween(String value1, String value2) {
            addCriterion("course_name between", value1, value2, "courseName");
            return (Criteria) this;
        }

        public Criteria andCourseNameNotBetween(String value1, String value2) {
            addCriterion("course_name not between", value1, value2, "courseName");
            return (Criteria) this;
        }

        public Criteria andClassNameIsNull() {
            addCriterion("class_name is null");
            return (Criteria) this;
        }

        public Criteria andClassNameIsNotNull() {
            addCriterion("class_name is not null");
            return (Criteria) this;
        }

        public Criteria andClassNameEqualTo(String value) {
            addCriterion("class_name =", value, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameNotEqualTo(String value) {
            addCriterion("class_name <>", value, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameGreaterThan(String value) {
            addCriterion("class_name >", value, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameGreaterThanOrEqualTo(String value) {
            addCriterion("class_name >=", value, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameLessThan(String value) {
            addCriterion("class_name <", value, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameLessThanOrEqualTo(String value) {
            addCriterion("class_name <=", value, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameLike(String value) {
            addCriterion("class_name like", value, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameNotLike(String value) {
            addCriterion("class_name not like", value, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameIn(List<String> values) {
            addCriterion("class_name in", values, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameNotIn(List<String> values) {
            addCriterion("class_name not in", values, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameBetween(String value1, String value2) {
            addCriterion("class_name between", value1, value2, "className");
            return (Criteria) this;
        }

        public Criteria andClassNameNotBetween(String value1, String value2) {
            addCriterion("class_name not between", value1, value2, "className");
            return (Criteria) this;
        }

        public Criteria andRoomNameIsNull() {
            addCriterion("room_name is null");
            return (Criteria) this;
        }

        public Criteria andRoomNameIsNotNull() {
            addCriterion("room_name is not null");
            return (Criteria) this;
        }

        public Criteria andRoomNameEqualTo(String value) {
            addCriterion("room_name =", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameNotEqualTo(String value) {
            addCriterion("room_name <>", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameGreaterThan(String value) {
            addCriterion("room_name >", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameGreaterThanOrEqualTo(String value) {
            addCriterion("room_name >=", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameLessThan(String value) {
            addCriterion("room_name <", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameLessThanOrEqualTo(String value) {
            addCriterion("room_name <=", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameLike(String value) {
            addCriterion("room_name like", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameNotLike(String value) {
            addCriterion("room_name not like", value, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameIn(List<String> values) {
            addCriterion("room_name in", values, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameNotIn(List<String> values) {
            addCriterion("room_name not in", values, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameBetween(String value1, String value2) {
            addCriterion("room_name between", value1, value2, "roomName");
            return (Criteria) this;
        }

        public Criteria andRoomNameNotBetween(String value1, String value2) {
            addCriterion("room_name not between", value1, value2, "roomName");
            return (Criteria) this;
        }

        public Criteria andTecherNameIsNull() {
            addCriterion("techer_name is null");
            return (Criteria) this;
        }

        public Criteria andTecherNameIsNotNull() {
            addCriterion("techer_name is not null");
            return (Criteria) this;
        }

        public Criteria andTecherNameEqualTo(String value) {
            addCriterion("techer_name =", value, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameNotEqualTo(String value) {
            addCriterion("techer_name <>", value, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameGreaterThan(String value) {
            addCriterion("techer_name >", value, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameGreaterThanOrEqualTo(String value) {
            addCriterion("techer_name >=", value, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameLessThan(String value) {
            addCriterion("techer_name <", value, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameLessThanOrEqualTo(String value) {
            addCriterion("techer_name <=", value, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameLike(String value) {
            addCriterion("techer_name like", value, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameNotLike(String value) {
            addCriterion("techer_name not like", value, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameIn(List<String> values) {
            addCriterion("techer_name in", values, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameNotIn(List<String> values) {
            addCriterion("techer_name not in", values, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameBetween(String value1, String value2) {
            addCriterion("techer_name between", value1, value2, "techerName");
            return (Criteria) this;
        }

        public Criteria andTecherNameNotBetween(String value1, String value2) {
            addCriterion("techer_name not between", value1, value2, "techerName");
            return (Criteria) this;
        }

        public Criteria andStarWeekIsNull() {
            addCriterion("star_week is null");
            return (Criteria) this;
        }

        public Criteria andStarWeekIsNotNull() {
            addCriterion("star_week is not null");
            return (Criteria) this;
        }

        public Criteria andStarWeekEqualTo(Integer value) {
            addCriterion("star_week =", value, "starWeek");
            return (Criteria) this;
        }

        public Criteria andStarWeekNotEqualTo(Integer value) {
            addCriterion("star_week <>", value, "starWeek");
            return (Criteria) this;
        }

        public Criteria andStarWeekGreaterThan(Integer value) {
            addCriterion("star_week >", value, "starWeek");
            return (Criteria) this;
        }

        public Criteria andStarWeekGreaterThanOrEqualTo(Integer value) {
            addCriterion("star_week >=", value, "starWeek");
            return (Criteria) this;
        }

        public Criteria andStarWeekLessThan(Integer value) {
            addCriterion("star_week <", value, "starWeek");
            return (Criteria) this;
        }

        public Criteria andStarWeekLessThanOrEqualTo(Integer value) {
            addCriterion("star_week <=", value, "starWeek");
            return (Criteria) this;
        }

        public Criteria andStarWeekIn(List<Integer> values) {
            addCriterion("star_week in", values, "starWeek");
            return (Criteria) this;
        }

        public Criteria andStarWeekNotIn(List<Integer> values) {
            addCriterion("star_week not in", values, "starWeek");
            return (Criteria) this;
        }

        public Criteria andStarWeekBetween(Integer value1, Integer value2) {
            addCriterion("star_week between", value1, value2, "starWeek");
            return (Criteria) this;
        }

        public Criteria andStarWeekNotBetween(Integer value1, Integer value2) {
            addCriterion("star_week not between", value1, value2, "starWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekIsNull() {
            addCriterion("end_week is null");
            return (Criteria) this;
        }

        public Criteria andEndWeekIsNotNull() {
            addCriterion("end_week is not null");
            return (Criteria) this;
        }

        public Criteria andEndWeekEqualTo(Integer value) {
            addCriterion("end_week =", value, "endWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekNotEqualTo(Integer value) {
            addCriterion("end_week <>", value, "endWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekGreaterThan(Integer value) {
            addCriterion("end_week >", value, "endWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekGreaterThanOrEqualTo(Integer value) {
            addCriterion("end_week >=", value, "endWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekLessThan(Integer value) {
            addCriterion("end_week <", value, "endWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekLessThanOrEqualTo(Integer value) {
            addCriterion("end_week <=", value, "endWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekIn(List<Integer> values) {
            addCriterion("end_week in", values, "endWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekNotIn(List<Integer> values) {
            addCriterion("end_week not in", values, "endWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekBetween(Integer value1, Integer value2) {
            addCriterion("end_week between", value1, value2, "endWeek");
            return (Criteria) this;
        }

        public Criteria andEndWeekNotBetween(Integer value1, Integer value2) {
            addCriterion("end_week not between", value1, value2, "endWeek");
            return (Criteria) this;
        }

        public Criteria andSrdIsNull() {
            addCriterion("srd is null");
            return (Criteria) this;
        }

        public Criteria andSrdIsNotNull() {
            addCriterion("srd is not null");
            return (Criteria) this;
        }

        public Criteria andSrdEqualTo(Integer value) {
            addCriterion("srd =", value, "srd");
            return (Criteria) this;
        }

        public Criteria andSrdNotEqualTo(Integer value) {
            addCriterion("srd <>", value, "srd");
            return (Criteria) this;
        }

        public Criteria andSrdGreaterThan(Integer value) {
            addCriterion("srd >", value, "srd");
            return (Criteria) this;
        }

        public Criteria andSrdGreaterThanOrEqualTo(Integer value) {
            addCriterion("srd >=", value, "srd");
            return (Criteria) this;
        }

        public Criteria andSrdLessThan(Integer value) {
            addCriterion("srd <", value, "srd");
            return (Criteria) this;
        }

        public Criteria andSrdLessThanOrEqualTo(Integer value) {
            addCriterion("srd <=", value, "srd");
            return (Criteria) this;
        }

        public Criteria andSrdIn(List<Integer> values) {
            addCriterion("srd in", values, "srd");
            return (Criteria) this;
        }

        public Criteria andSrdNotIn(List<Integer> values) {
            addCriterion("srd not in", values, "srd");
            return (Criteria) this;
        }

        public Criteria andSrdBetween(Integer value1, Integer value2) {
            addCriterion("srd between", value1, value2, "srd");
            return (Criteria) this;
        }

        public Criteria andSrdNotBetween(Integer value1, Integer value2) {
            addCriterion("srd not between", value1, value2, "srd");
            return (Criteria) this;
        }

        public Criteria andStatuIsNull() {
            addCriterion("statu is null");
            return (Criteria) this;
        }

        public Criteria andStatuIsNotNull() {
            addCriterion("statu is not null");
            return (Criteria) this;
        }

        public Criteria andStatuEqualTo(Integer value) {
            addCriterion("statu =", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuNotEqualTo(Integer value) {
            addCriterion("statu <>", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuGreaterThan(Integer value) {
            addCriterion("statu >", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuGreaterThanOrEqualTo(Integer value) {
            addCriterion("statu >=", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuLessThan(Integer value) {
            addCriterion("statu <", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuLessThanOrEqualTo(Integer value) {
            addCriterion("statu <=", value, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuIn(List<Integer> values) {
            addCriterion("statu in", values, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuNotIn(List<Integer> values) {
            addCriterion("statu not in", values, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuBetween(Integer value1, Integer value2) {
            addCriterion("statu between", value1, value2, "statu");
            return (Criteria) this;
        }

        public Criteria andStatuNotBetween(Integer value1, Integer value2) {
            addCriterion("statu not between", value1, value2, "statu");
            return (Criteria) this;
        }

        public Criteria andMarkIsNull() {
            addCriterion("mark is null");
            return (Criteria) this;
        }

        public Criteria andMarkIsNotNull() {
            addCriterion("mark is not null");
            return (Criteria) this;
        }

        public Criteria andMarkEqualTo(String value) {
            addCriterion("mark =", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkNotEqualTo(String value) {
            addCriterion("mark <>", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkGreaterThan(String value) {
            addCriterion("mark >", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkGreaterThanOrEqualTo(String value) {
            addCriterion("mark >=", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkLessThan(String value) {
            addCriterion("mark <", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkLessThanOrEqualTo(String value) {
            addCriterion("mark <=", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkLike(String value) {
            addCriterion("mark like", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkNotLike(String value) {
            addCriterion("mark not like", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkIn(List<String> values) {
            addCriterion("mark in", values, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkNotIn(List<String> values) {
            addCriterion("mark not in", values, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkBetween(String value1, String value2) {
            addCriterion("mark between", value1, value2, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkNotBetween(String value1, String value2) {
            addCriterion("mark not between", value1, value2, "mark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }


    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}